<?php /* Smarty version 2.6.16, created on 2012-02-22 20:37:26
         compiled from findcoach1.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'findcoach1.tpl', 125, false),)), $this); ?>
<?php echo '
<script type="text/javascript" src="jss/jquery-1.2.2.pack.js"></script>
<script type="text/javascript" src="jss/htmltooltip.js"></script>
<style type="text/css">
 
div.htmltooltip {
position: absolute; /*leave this and next 3 values alone*/
z-index: 1000;
left: -1000px;
top: -1000px;
background: #FFFDD8;
border: 2px solid #000000;
color:#000000;
padding: 3px;
width: 250px; /*width of tooltip*/
}
 
</style>


<script>
function ListSorting(sorting_url,sorting_by,ladder)
{
var params = {
	\'list_for\':\'sorting\',
	\'sorting_by\': sorting_by,
	\'IsProcess\': \'Y\',
	\'ladder_id\': ladder
};
alert(ladder);
$.ajax({
	type: "GET",
	url: sorting_url,
	data: params,			
	dataType: \'html\',
	success: function(data)
	{				
		$("#paging").html(data);
	}
});
return false;		
}
function expand(id)
{
  $(\'#small_\'+id).css(\'display\',\'none\');
  $(\'#big_\'+id).css(\'display\',\'block\');
  
}
function collapse(id)
{
  $(\'#big_\'+id).css(\'display\',\'none\');
  $(\'#small_\'+id).css(\'display\',\'block\');
  
}
</script>
<script type="text/javascript">
function redirect_function(id)
{
  document.forms["coachform"+id].submit();
}

</script>
'; ?>

<div id="paging"> 
 <div class="right-panel">
      <h1><span>Find Coach</span></h1>
      <div class="searchpanel">
         <form action="" method="post">
              <fieldset>
			  <label></label>
              <select for="sirt" name="sort_by" onchange="subForm(this.value);">
			      <option value="">Sort by</option>
                  <option value="rating" <?php if ($this->_tpl_vars['sort_by'] == 'rating'): ?> selected="selected" <?php endif; ?>>Star Rating (Low)</option>
				  <option value="rating-DESC" <?php if ($this->_tpl_vars['sort_by'] == 'rating-DESC'): ?> selected="selected" <?php endif; ?>>Star Rating (High)</option>
				  <option value="rate" <?php if ($this->_tpl_vars['sort_by'] == 'rate'): ?> selected="selected" <?php endif; ?>>Rate (Low)</option>
				  <option value="rate-DESC" <?php if ($this->_tpl_vars['sort_by'] == 'rate-DESC'): ?> selected="selected" <?php endif; ?>>Rate (High)</option>
               </select>
               </fieldset>
            </form>
           <div class="clear"></div>
      </div>
      <div class="clear"></div>
      <!--div class="sortby">
             <form action="" method="post">
			   <fieldset>
               <label>Sort by:</label>
               <select for="sirt" name="sort_by" onchange="ListSorting('findcoach.php',this.value)">
                  <option value="ASC" <?php if ($this->_tpl_vars['sort_by'] == 'ASC'): ?> selected="selected" <?php endif; ?>>Star Rating (Low)</option>
				  <option value="DESC" <?php if ($this->_tpl_vars['sort_by'] == 'DESC'): ?> selected="selected" <?php endif; ?>>Star Rating (High)</option>
               </select>
               </fieldset>
            </form>
      </div-->
      <div class="clear"></div>
 

   <?php if ($this->_tpl_vars['SearchTxt'] != ''): ?><div><b>Search By</b>  <?php echo $this->_tpl_vars['SearchTxt']; ?>
</div><?php endif; ?>
	 <?php if ($this->_tpl_vars['NumCoach'] > 0): ?>
	  <?php unset($this->_sections['coachRow']);
$this->_sections['coachRow']['name'] = 'coachRow';
$this->_sections['coachRow']['loop'] = is_array($_loop=$this->_tpl_vars['CoachArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['coachRow']['show'] = true;
$this->_sections['coachRow']['max'] = $this->_sections['coachRow']['loop'];
$this->_sections['coachRow']['step'] = 1;
$this->_sections['coachRow']['start'] = $this->_sections['coachRow']['step'] > 0 ? 0 : $this->_sections['coachRow']['loop']-1;
if ($this->_sections['coachRow']['show']) {
    $this->_sections['coachRow']['total'] = $this->_sections['coachRow']['loop'];
    if ($this->_sections['coachRow']['total'] == 0)
        $this->_sections['coachRow']['show'] = false;
} else
    $this->_sections['coachRow']['total'] = 0;
if ($this->_sections['coachRow']['show']):

            for ($this->_sections['coachRow']['index'] = $this->_sections['coachRow']['start'], $this->_sections['coachRow']['iteration'] = 1;
                 $this->_sections['coachRow']['iteration'] <= $this->_sections['coachRow']['total'];
                 $this->_sections['coachRow']['index'] += $this->_sections['coachRow']['step'], $this->_sections['coachRow']['iteration']++):
$this->_sections['coachRow']['rownum'] = $this->_sections['coachRow']['iteration'];
$this->_sections['coachRow']['index_prev'] = $this->_sections['coachRow']['index'] - $this->_sections['coachRow']['step'];
$this->_sections['coachRow']['index_next'] = $this->_sections['coachRow']['index'] + $this->_sections['coachRow']['step'];
$this->_sections['coachRow']['first']      = ($this->_sections['coachRow']['iteration'] == 1);
$this->_sections['coachRow']['last']       = ($this->_sections['coachRow']['iteration'] == $this->_sections['coachRow']['total']);
?>
      <div class="game-list-block">
        <form name="coach<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
" id="coachform<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
" method="post" 
			action="coachdetails.php?coach_id=<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
">
			<input type="hidden" name="ladders" value="<?php echo $this->_tpl_vars['ladders']; ?>
" />
			<input type="hidden" name="price" value="<?php echo $this->_tpl_vars['price']; ?>
" />
			<input type="hidden" name="races" value="<?php echo $this->_tpl_vars['races']; ?>
" />
			<input type="hidden" name="ladders" value="<?php echo $this->_tpl_vars['ladders']; ?>
" />
			<input type="hidden" name="ratings" value="<?php echo $this->_tpl_vars['ratings']; ?>
" />
			<input type="hidden" name="servers" value="<?php echo $this->_tpl_vars['servers']; ?>
" />
			<input type="hidden" name="languages" value="<?php echo $this->_tpl_vars['languages']; ?>
" />
			<input type="hidden" name="regions" value="<?php echo $this->_tpl_vars['regions']; ?>
" />
			<input type="hidden" name="availabilitys" value="<?php echo $this->_tpl_vars['availabilitys']; ?>
" />
			<input type="hidden" name="game_id" value="<?php echo $this->_tpl_vars['game_id']; ?>
" />
		    <div class="game-image-block">
			<a href="#" onclick="redirect_function(<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
)">
			<?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['photo'] != ''): ?>
		     <img src="uploaded/user_images/thumbs/big_<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['photo']; ?>
" alt="Coach" border="0"  />
			<?php else: ?>
			 <img src="images/coach_thumb.jpg">
			 <!--div style="width:198px; padding:5px; float:left; display:block;">&nbsp;</div--> 
		    <?php endif; ?>
			</a> 
		    </div> 
		  <div class="game-details-block" style="height:255px;" id="small_<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
">
		    <!--<h2><a href="#" onclick="redirect_function(<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
)" style="text-decoration:none;"><?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['name']; ?>
</a></h2>
            <p><?php echo ((is_array($_tmp=$this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['about'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 200, "...", true) : smarty_modifier_truncate($_tmp, 200, "...", true)); ?>
</p>
            <p class="clear"></p>
            <ul class="games-desc">
			   <li><span>Star Rating :</span> <?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['star']; ?>
</li>
			 
            </ul>
            <ul class="games-desc">
			   <li><span>Language :</span> <?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['language'] != ''):  echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['language'];  else: ?>N/A<?php endif; ?></li>
			  
            </ul>
            <div class="clear"></div>
			<a href="javascript:;" style="float:right;" onclick="expand(<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
)">more</a>
            <div class="view">
			a href="coachdetails.php?coach_id=<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
&game_id=<?php echo $this->_tpl_vars['game_id']; ?>
">view</a
			<a href="#" onclick="redirect_function(<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
)">view</a>
			</div>-->
             <h2><a href="#" onclick="redirect_function(<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
)" style="text-decoration:none;"><?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['name']; ?>
</a></h2>
            <!--<p><?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['about']; ?>
</p>-->
            <p class="clear"></p>
            <ul class="games-desc">
			   <li><span>Star Rating :</span> <?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['star']; ?>
</li>
			   <li><span>Availability :</span> <?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['availability_type'] != ''):  echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['availability_type'];  else: ?>N/A<?php endif; ?></li>
			   <?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['avail_local'] == 'Y'): ?>
			   <li><span>City (local meet-up) :</span> <?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['availability_city'] != ''):  echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['availability_city'];  else: ?>N/A<?php endif; ?></li>
			   <?php endif; ?>
			   
			   <?php if ($this->_tpl_vars['is_ladder'] == 'Y'): ?>
			     <li><span>Ladder :</span> <?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['ladder']; ?>
</li>
			   <?php endif; ?>
			   <?php if ($this->_tpl_vars['is_server'] == 'Y'): ?>
                 <li><span>Server :</span> <?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['server']; ?>
</li>
			   <?php endif; ?>
			   <?php if ($this->_tpl_vars['is_region'] == 'Y'): ?>
                 <li><span>Region :</span> <?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['region']; ?>
</li>
			   <?php endif; ?>	 
               
               <!--li><span>Rate :</span> $10</li-->
               
            </ul>
            <ul class="games-desc">
			   <li><span>Language :</span> <?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['language'] != ''):  echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['language'];  else: ?>N/A<?php endif; ?></li>
			   <li><span>Rate :</span> <?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['rate'] != ''): ?>$<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['rate'];  else: ?>N/A<?php endif; ?></li>
			   <?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['avail_local'] == 'Y'): ?>
			   <li><span>Country (local meet-up) :</span> <?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['availability_country'] != ''):  echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['availability_country'];  else: ?>N/A<?php endif; ?></li>
			   <?php endif; ?>
			   <?php if ($this->_tpl_vars['is_race'] == 'Y'): ?>
                 <li><span>Race :</span> <?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['race']; ?>
</li>
				 <li>&nbsp;</li>
			   <?php endif; ?>
			   <?php if ($this->_tpl_vars['is_rating'] == 'Y'): ?>
                 <li><span>Rating :</span> <?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['rating']; ?>
</li>
			   <?php endif; ?>
            </ul>
            <div class="clear"></div>
			<p style="padding-left:2px;"><b>Experience</b> : <?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['experience'] != ''):  echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['experience'];  else: ?>N/A<?php endif; ?></p>
            
            <div class="clear"></div>
            
            <!-- Score Area -->
            <br />
            <div id="scoreCard">
                <ul>
				<?php unset($this->_sections['k']);
$this->_sections['k']['name'] = 'k';
$this->_sections['k']['loop'] = is_array($_loop=$this->_tpl_vars['CatIndividualRec'][$this->_sections['coachRow']['index']]) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['k']['show'] = true;
$this->_sections['k']['max'] = $this->_sections['k']['loop'];
$this->_sections['k']['step'] = 1;
$this->_sections['k']['start'] = $this->_sections['k']['step'] > 0 ? 0 : $this->_sections['k']['loop']-1;
if ($this->_sections['k']['show']) {
    $this->_sections['k']['total'] = $this->_sections['k']['loop'];
    if ($this->_sections['k']['total'] == 0)
        $this->_sections['k']['show'] = false;
} else
    $this->_sections['k']['total'] = 0;
if ($this->_sections['k']['show']):

            for ($this->_sections['k']['index'] = $this->_sections['k']['start'], $this->_sections['k']['iteration'] = 1;
                 $this->_sections['k']['iteration'] <= $this->_sections['k']['total'];
                 $this->_sections['k']['index'] += $this->_sections['k']['step'], $this->_sections['k']['iteration']++):
$this->_sections['k']['rownum'] = $this->_sections['k']['iteration'];
$this->_sections['k']['index_prev'] = $this->_sections['k']['index'] - $this->_sections['k']['step'];
$this->_sections['k']['index_next'] = $this->_sections['k']['index'] + $this->_sections['k']['step'];
$this->_sections['k']['first']      = ($this->_sections['k']['iteration'] == 1);
$this->_sections['k']['last']       = ($this->_sections['k']['iteration'] == $this->_sections['k']['total']);
?>
					<?php if ($this->_tpl_vars['CatIndividualRec'][$this->_sections['coachRow']['index']][$this->_sections['k']['index']]['rating_category'] == 'Knowledge'): ?>
                    <li id="Knowledge" class="tTip">
					<a href="#" rel="htmltooltip">
					<strong><?php echo $this->_tpl_vars['CatIndividualRec'][$this->_sections['coachRow']['index']][$this->_sections['k']['index']]['rating']; ?>
</strong>
					<span><?php echo $this->_tpl_vars['CatIndividualRec'][$this->_sections['coachRow']['index']][$this->_sections['k']['index']]['rating_category']; ?>
</span>
					</a>
					<div class="htmltooltip">
					<ul>Knowledge is a rating for:
						<li>Strategies</li>
						<li>Game knowledge</li>
						<li>Detailed analysis</li>
					</ul>
					</div>
					</li>
					<?php endif; ?>
					<?php if ($this->_tpl_vars['CatIndividualRec'][$this->_sections['coachRow']['index']][$this->_sections['k']['index']]['rating_category'] == 'Structure'): ?>
				   <li id="Structure" class="tTip">
				   <a href="#" rel="htmltooltip">
				   <strong><?php echo $this->_tpl_vars['CatIndividualRec'][$this->_sections['coachRow']['index']][$this->_sections['k']['index']]['rating']; ?>
</strong><span>Structure</span>
				   </a>
				   <div class="htmltooltip">
					<ul>Structure is a rating for:
						<li>Did the lesson have clear goals?</li>
						<li>Were there reasonable expectations?</li>
						<li>Was the lesson smooth?</li>
					</ul>
				   </div>
				   </li>
				   <?php endif; ?>
				   <?php if ($this->_tpl_vars['CatIndividualRec'][$this->_sections['coachRow']['index']][$this->_sections['k']['index']]['rating_category'] == 'Communication'): ?>
					<li id="Communication" class="tTip">
					<a href="#" rel="htmltooltip">
					<strong><?php echo $this->_tpl_vars['CatIndividualRec'][$this->_sections['coachRow']['index']][$this->_sections['k']['index']]['rating']; ?>
</strong><span>Communication</span>
					</a>
					<div class="htmltooltip">
					<ul>Communication is a rating for:
						<li>Clear instruction</li>
						<li>Language fluency</li>
						<li>Positive engagement</li>
					</ul>
					</div>
					</li>
					<?php endif; ?>
					<?php if ($this->_tpl_vars['CatIndividualRec'][$this->_sections['coachRow']['index']][$this->_sections['k']['index']]['rating_category'] == 'Professionalism'): ?>
					 <li id="Professionalism" class="tTip">
					 <a href="#" rel="htmltooltip">
					 <strong><?php echo $this->_tpl_vars['CatIndividualRec'][$this->_sections['coachRow']['index']][$this->_sections['k']['index']]['rating']; ?>
</strong><span>Professionalism</span>
					 </a>
					 <div class="htmltooltip">
					 <ul>Professionalism is a rating for:
						<li>Reliability</li>
						<li>Punctuality</li>
						<li>Trustworthy</li>
					 </ul>
					 </div>
					 </li>
					 <?php endif; ?>
				<!--<li title="Knowledge" id="Knowledge" class="tTip"><strong>4.3</strong><span>Knowledge</span></li>
                    <li title="Structure" id="Structure" class="tTip"><strong>4.5</strong><span>Structure</span></li>
                    <li title="Communication" id="Communication" class="tTip"><strong>3.7</strong><span>Communication</span></li>-->
				<?php endfor; endif; ?>
                </ul>
            </div>
            <div class="clear"></div>
            <!-- Score Area END -->
            
			<!--<a href="javascript:;" style="float:right;" onclick="collapse(<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
)">less</a>-->
            <div class="view">
			<!--a href="coachdetails.php?coach_id=<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
&game_id=<?php echo $this->_tpl_vars['game_id']; ?>
">view</a-->
			<a href="#" onclick="redirect_function(<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
)">view</a>
			</div>
			</div>
		  <div class="game-details" style="display:none;" id="big_<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
">
		  
             <h2><a href="#" onclick="redirect_function(<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
)" style="text-decoration:none;"><?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['name']; ?>
</a></h2>
            <!--<p><?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['about']; ?>
</p>-->
            <p class="clear"></p>
            <ul class="games-desc">
			   <li><span>Star Rating :</span> <?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['star']; ?>
</li>
			   <li><span>Availability :</span> <?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['availability_type'] != ''):  echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['availability_type'];  else: ?>N/A<?php endif; ?></li>
			   <?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['avail_local'] == 'Y'): ?>
			   <li><span>City (local meet-up) :</span> <?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['availability_city'] != ''):  echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['availability_city'];  else: ?>N/A<?php endif; ?></li>
			   <?php endif; ?>
			   
			   <?php if ($this->_tpl_vars['is_ladder'] == 'Y'): ?>
			     <li><span>Ladder :</span> <?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['ladder']; ?>
</li>
			   <?php endif; ?>
			   <?php if ($this->_tpl_vars['is_server'] == 'Y'): ?>
                 <li><span>Server :</span> <?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['server']; ?>
</li>
			   <?php endif; ?>
			   <?php if ($this->_tpl_vars['is_region'] == 'Y'): ?>
                 <li><span>Region :</span> <?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['region']; ?>
</li>
			   <?php endif; ?>	 
               
               <!--li><span>Rate :</span> $10</li-->
               
            </ul>
            <ul class="games-desc">
			   <li><span>Language :</span> <?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['language'] != ''):  echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['language'];  else: ?>N/A<?php endif; ?></li>
			   <li><span>Rate :</span> <?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['rate'] != ''): ?>$<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['rate'];  else: ?>N/A<?php endif; ?></li>
			   <?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['avail_local'] == 'Y'): ?>
			   <li><span>Country (local meet-up) :</span> <?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['availability_country'] != ''):  echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['availability_country'];  else: ?>N/A<?php endif; ?></li>
			   <?php endif; ?>
			   <?php if ($this->_tpl_vars['is_race'] == 'Y'): ?>
                 <li><span>Race :</span> <?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['race']; ?>
</li>
				 <li>&nbsp;</li>
			   <?php endif; ?>
			   <?php if ($this->_tpl_vars['is_rating'] == 'Y'): ?>
                 <li><span>Rating :</span> <?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['rating']; ?>
</li>
			   <?php endif; ?>
            </ul>
            <div class="clear"></div>
			<p style="padding-left:2px;"><b>Experience</b> : <?php if ($this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['experience'] != ''):  echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['experience'];  else: ?>N/A<?php endif; ?></p>
            
            <div class="clear"></div>
            
            <!-- Score Area -->
            <br />
            <div id="scoreCard">
                <ul>
                    <li title="Overall" id="Overall" class="tTip"><strong>4.4</strong><span>Overall</span></li>
                    <li title="Knowledge" id="Knowledge" class="tTip"><strong>4.3</strong><span>Knowledge</span></li>
                    <li title="Structure" id="Structure" class="tTip"><strong>4.5</strong><span>Structure</span></li>
                    <li title="Communication" id="Communication" class="tTip"><strong>3.7</strong><span>Communication</span></li>
                </ul>
            </div>
            <div class="clear"></div>
            <!-- Score Area END -->
            
			<a href="javascript:;" style="float:right;" onclick="collapse(<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
)">less</a>
            <div class="view">
			<!--a href="coachdetails.php?coach_id=<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
&game_id=<?php echo $this->_tpl_vars['game_id']; ?>
">view</a-->
			<a href="#" onclick="redirect_function(<?php echo $this->_tpl_vars['CoachArr'][$this->_sections['coachRow']['index']]['user_id']; ?>
)">view</a>
            
            
			</div>
			</div>
			<div class="clear"></div>
			</form>
         <div class="clear"></div>
      </div>
	 <?php endfor; endif; ?> 
     <?php if ($this->_tpl_vars['pagination_arr'][1]): ?>
	 <div class="clear"></div>
      <div class="pagin">
         <ul>
           <?php echo $this->_tpl_vars['pagination_arr'][1]; ?>

         </ul>
      </div>
	 <?php endif; ?>
	 <?php else: ?>
	    No Coach is found......
     <?php endif; ?>
	</div> 
   </div>